var Main = {}
Main.init = function () {
  Main.events()
}
Main.events = function () {
  Main.Common()
}
Main.Common = function () {
  let Header = $('.header')
  $(window).scroll(function () {
    $(window).scrollTop() > Header.height()
      ? Header.addClass('cur')
      : Header.removeClass('cur')
  })
  $('#gotop').click(function () {
    $('body,html').animate({ scrollTop: 0 }, 1000)
    return false
  })
}
$(function () {
  Main.init()
})
